<?php

/*** include the controller class ***/
include __SITE_PATH . '/Core/' . 'Controller.class.php';

/*** include the hook class ***/
include __SITE_PATH . '/Core/' . 'Hook.class.php';

/*** include the router class ***/
include __SITE_PATH . '/Core/' . 'Router.class.php';



 /*** include the template class ***/
include __SITE_PATH . '/Core/' . 'Template.class.php';
 /*** auto load model classes ***/
    function __autoload($class_name) {
    	$filename = strtoupper($class_name) . '.class.php';
   	 	$file = __SITE_PATH . '/Model/' . $filename;

	    if (file_exists($file) == false)
	    {
	        return false;
	    }
	  include ($file);
	}

 /*** a new hook object ***/
$hook = new Hook;
$hook->db = DB::getInstance('mongodb');
?>
